package com.xuelang.pipeline.artifact.app.harborv2.xo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.OffsetDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NativeReportSummary {
    /**
     * The complete percent of the scanning which value is between 0 and 100
     */
    @JsonProperty("complete_percent")
    private Long completePercent;
    /**
     * The seconds spent for generating the report
     */
    private Long duration;
    /**
     * The end time of the scan process that generating report
     */
    @JsonProperty("end_time")
    private OffsetDateTime endTime;
    /**
     * id of the native scan report
     */
    @JsonProperty("report_id")
    private String reportId;
    /**
     * The status of the report generating process
     */
    @JsonProperty("scan_status")
    private String scanStatus;
    private Scanner scanner;
    /**
     * The overall severity
     */
    private String severity;
    /**
     * The start time of the scan process that generating report
     */
    @JsonProperty("start_time")
    private OffsetDateTime startTime;
    private VulnerabilitySummary summary;
}